 //**********************************************************
 // Flight.java       Author:20172323wyh
 //**********************************************************
 public class Flight
 {
    private String Coursename;
    private String Flightnumber;
    private String Starting;
    private String Destination;

    public Flight(String name,String number,String COC,String terminus)
    {
       Coursename = name;
       Flightnumber = number;
       Starting = COC;
       Destination = terminus;
    }
  
    public String getName()
    {
       return Coursename;
    }

    public String getNumber()
    {
       return Flightnumber;
    }

    public String getCOC()
    {
       return Starting;
    }

    public String getTerminus()
    {
       return Destination;
    }

    public String toString()
    {
       return "The Coursename: " + Coursename + "\n" + "The Flightnumber: " + Flightnumber + "\n" + "The Starting place: " + Starting + "\n" + "The Destination: " + Destination;
    }
 }
